package com.xf.spring.spel;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	public static void main(String[] args) {
		ApplicationContext ct = new ClassPathXmlApplicationContext("xmls/bean-spel.xml");
	
		Address address=(Address) ct.getBean("Address1");
		Car car=(Car) ct.getBean("Car1");
		Person p = (Person) ct.getBean("Person1");
		System.out.println(p);
	}

}
